import request from "@/utils/request";

export function getAllThesisApi(param) {
    return request({
        url: '/thesis/list/page',
        method: 'post',
        data: param
    })
}


export function getAllThesisByTeacherIdApi(id, current, size) {
    return request({
        url: '/thesis/list',
        method: 'get',
        params: {
            id:id,
            current: current,
            size: size
        }
    })
}

export function postNewThesisApi(data) {
    return request({
        url: '/thesis/post',
        method: 'post',
        data
    })
}

export function deleteThesisApi(data) {
    return request({
        url: '/thesis/delete',
        method: 'post',
        data
    })
}

export function editThesisApi(data) {
    return request({
        url: '/thesis/update',
        method: 'post',
        data
    })
}


export function selectThesisApi(id) {
    return request({
        url: '/thesis/selectThesis',
        method: 'post',
        params: {
            thesisId:id
        }
    })
}

export function getAllApplyApi(params) {
    return request({
        url: '/thesis/applyList',
        method: 'get',
        params
    })
}

export function auditThesisApi(params) {
    return request({
        url: '/thesis/audit',
        method: 'post',
        params
    })
}

export function getThesisInfoApi() {
    return request({
        url: '/thesis/getThesisInfo',
        method: 'get',
    })
}




